package org.dromara.authcode.domain.bo;

import org.dromara.authcode.domain.TGoods;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 商品业务对象 t_goods
 *
 * @author Miles Meng
 * @date 2025-08-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TGoods.class, reverseConvertGenerate = false)
public class TGoodsBo extends BaseEntity {

    /**
     * 商品id
     */
    @NotNull(message = "商品id不能为空", groups = { EditGroup.class })
    private Long goodsId;

    /**
     * 商品名称
     */
    private String goodsName;

    /**
     * 价格
     */
    private Long price;

    /**
     * 价格币种
     */
    private String currency;

    /**
     * 点数
     */
    private Long points;

    /**
     * 商品描述
     */
    private String goodsDesc;

    /**
     * Y 是；N 否
     */
    private String enable;

    /**
     * 有效月数
     */
    private Long validMonths;


}
